package code.springboot.mapstruct;

import code.springboot.mapstruct.bo.UserBO;
import code.springboot.mapstruct.convert.UserConvert;
import code.springboot.mapstruct.dataobject.UserDO;

public class UserBOTest {

    public static void main(String[] args) {
        UserDO userDO = new UserDO().setId(1).setUsername("rocky").setPassword("123456");
        UserBO userBO = UserConvert.INSTANCE.convert(userDO);
        System.out.println(userBO.getId());
        System.out.println(userBO.getUsername());
        System.out.println(userBO.getPassword());

    }
}
